package com.xjy.rpc.netty.message;

public class RpcResponse extends AbstractMessageBody {

    private Object result;

    private long requestId;

    private Exception exception;

    public long getRequestId() {
        return requestId;
    }

    public void setRequestId(long requestId) {
        this.requestId = requestId;
    }

    public RpcResponse(){}

    public void setResult(Object result) {
        this.result = result;
    }

    @Override
    public Object getResult() {
        return result;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }
}
